package main

import (
	"gitee.com/yysf-xin/dproxy/pkg/app"
	"gitee.com/yysf-xin/dproxy/pkg/v2ray"
)

func main() {
	var config app.Config
	//v2rayCfg := &config.File.V2ray
	//flag.StringVar(&v2rayCfg.Addr,"addr", "127.0.0.1:8888","listen addr")
	s, err := v2ray.NewServer(&config)
	if err != nil {
		panic(err)
	}
	err = s.Start()
	if err != nil {
		panic(err)
	}
	select {}

}
